{include file=$header_start}
{strip}
<script src="{$siteroot}/includes/js/admin/budget.js" type="text/javascript"></script>
{/strip}
{literal}
<script type="text/javascript">
function numbersonly(e)
{		

	var unicode=e.charCode? e.charCode : e.keyCode;		
	//alert(unicode)
	if (unicode!=8 && unicode !=9  &&  unicode !=39 &&  unicode != 46 &&  unicode !=  34 )
	{ 	
		//if the key isn't the backspace,Tab key (which we should allow)
		if (unicode<48||unicode>57) //if not a number
			return false; //disable key press
	}
}
</script>
{/literal}
{include file=$header_end}
 <div class="contain">
      {include file=$left_menu}
      <div class="right_contain">
         <div class="heading_box">Add Budget</div>
         <div class="whitebox">
         <!--Message Div Start-->
         {if $msg}
         <div class="masg_div">
           {$msg}
         </div>
         {/if}
         <!--Message Div End-->
         <form name="frmAddBudget" id="frmAddBudget" action="" method="post">
          <input type="hidden" id="page" name="page" value="{$page}" />
         <div style="min-height:250px;">
          <!--Form Contain start-->
           <div class="form_fieldbox">
             
             <dl>
              <dt>Budget Name:<span class="error">*</span></dt>
              <dd>Under $<input type="text" class="input" name="budgetname" id="budgetname" value="{$smarty.post.budgetname}" maxlength="8" onKeyPress="return numbersonly(event);"/></dd>
              <div class="clear"></div>
             </dl>
             
	         <dl>
              <dt>Budget Range From:<span class="error">*</span></dt>
              <dd>$<input type="text" class="input" name="budgetfrom" id="budgetfrom" value="{$smarty.post.budgetfrom}" style="width:80px;" maxlength="8" onKeyPress="return numbersonly(event);"/> </dd>
              <div class="clear"></div>
             </dl>
             
             
	         <dl>
              <dt>Budget Range To:<span class="error">*</span></dt>
              <dd>$<input type="text" class="input" name="budgetto" id="budgetto" value="{$smarty.post.budgetto}" style="width:80px;" maxlength="8" onKeyPress="return numbersonly(event);"/></dd>
              <div class="clear"></div>
             </dl>

             
             <dl>
              <dt>&nbsp;</dt>            
              <dd>&nbsp;</dd>
              <div class="clear"></div>
             </dl>
            </div>
            
            <!--Form Contain end--> 
          
           <!--Button here start-->
           <div>
            <span><input type="submit" class="admin_btn" value="Submit" name="addbudget_btn" id="addbudget_btn" /></span>
            <span><input type="button" class="admin_btn" value="Cancel" onclick="window.location='{$siteroot}/admin/home.php?q=budget&page={$smarty.get.page}';"/></span>
           </div>
            <!--Button here end-->
  
         </div>
         </form>
         
         </div>
        </div>
      
      
      <!--right_contain end-->
      <div class="clear"></div>
    </div>
    
{include file=$footer}